package com.cyandpos.pad.cateringformat.opentable;

import com.cyandpos.pad.posdata.DinnerTable;
import com.cyandpos.pad.posdata.Goods;
import com.cyandpos.pad.posdata.TableReserve;
import com.cyandpos.pad.posdata.TicketInfo;

import java.util.List;

/**
 * Created by xin on 2021/8/30
 * desc:
 */
public interface ImplModelFragmentOpenTable {
//    void queryTableStatusInfo(int tableState);

    void queryTableStatusInfo(int tableState, onQueryTableStatusListener onQueryTableStatusListener);

    interface onQueryTableStatusListener {
        void onQueryTableStatusSuccess(List<DinnerTable> tableList);

        void onQueryTableStatusFailure(String errorMsg);
    }

    void queryTableReserveInfo(int tableId, onQueryTableReserveListener listener);


    interface onQueryTableReserveListener {
        void onQueryTableReserveSuccess(List<TableReserve> tableList);

        void onQueryTableReserveFailure(String errorMsg);
    }

    void clearTableStatus(int tableId,int tableStatus, onClearTableStatusListener listener);

    interface onClearTableStatusListener {
        void onClearTableStatusSuccess();

        void onClearTableStatusFailure(String errorMsg);
    }

}
